package com.club.football.common;


import static com.club.football.utils.FileUtils.getDirPath;

/**
 * 公用常数
 *
 * @author 1
 * @date 2023/12/29
 */
public class CommonConstants {

    private CommonConstants() {
    }

    /**
     * 成功
     */
    public static final int SUCCESS = 0;
    /**
     * 失败
     */
    public static final int FAIL = 1;

    /**
     * 一
     */
    public static final long ONE = 1L;
    /**
     * 令牌
     */
    public static final String TOKEN = "Authorization";


    /**
     * 请输入
     */
    public static final String NULL_MSG = "请输入";

    /**
     * 未选择消息
     */
    public static final String NO_CHOOSE_MSG = "请选择";
    /**
     * 现有消息
     */
    public static final String EXIST_MSG = "已存在";

    /**
     * 不存在消息
     */
    public static final String NO_EXIST_MSG = "不存在";

    /**
     * 无参数消息
     */
    public static final String NO_PARAMS_MSG = "必要参数缺失";

    public static final String ID_ERROR = "id不存在";

    public static final String SAVE_OK_MSG = "保存成功";

    public static final String EDIT_OK_MSG = "修改成功";

    public static final String EDIT_FAIL_MSG = "修改失败";


    public static final String OPERATION_OK = "操作成功";


    public static final String DEL_OK_MSG = "删除成功";

    public static final String GET_INFO_OK = "获取成功";

    public static final String DISALLOWED_OPERATION = "权限不足";

    public static final String USER_STATUS_EXCEPTION = "用户状态异常";

    /**
     * 默认密码
     */
    public static final String DEFAULT_PASSWORD = "123456";

    public static final String ADMIN_NAME = "admin";

    public static final long ADMIN_ID = 10000L;


    public static final String BASE_PATH = getDirPath();

    public static final String BASE_IP = "127.0.0.1";

    public static final String HTTP_HEAD = "http://";

    public static final String BASE_PORT = "8889";

    public static final String FILE_TEMP = "temp";

    public static final String DEFAULT_IMAGE = "default.jpg";

    public static final String FILE_LOCAL = "static";

    public static final long PHONE_LENGTH = 11L;

    public static final String MATCH_SUCCESS = "主队胜";
    public static final String MATCH_FILED = "客队胜";

    public static final String MATCH_A_DRAW = "平局";
}
